package com.gcxy.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NonNull;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * Copyright (C), 2024-2024, BUG闭退！
 * Author: Huang先森
 * Date: 2024/8/1 9:16
 * FileName: BatchImportDTO
 * Description:
 */
@Data
public class BatchImportDTO {
    @ApiModelProperty("文件")
    @NotNull(message = "文件不能为空")
    private MultipartFile file;

    @ApiModelProperty("学期ID")
    @NotNull(message = "学期ID不能为空")
    @Min(value = 1,message = "学期ID不能小于1")
    private Integer semesterId;

    @ApiModelProperty("组织机构ID")
    @NotNull(message = "组织机构ID不能为空")
    @Min(value = 1,message = "组织机构ID不能小于1")
    private Integer agencyId;

}
